home *** CD-ROM | disk | FTP | other *** search
XSetup plugin | 2000-04-17 | 1.3 KB | 59 lines |
- "FILE"="Xteq Systems X-Setup Plugin 5.0"
- "TYPE"="6"
- "COUNT"="2"
- "UIPATH"="Network\Security\General"
- "NAME"="Event Log Options"
- "VERSION"="1.11"
- "LANGUAGE"="VBScript"
- "TEXT 1"="Allow guest access to Application log"
- "TEXT 2"="Allow guest access to System log"
- "DESCRIPTION 1"="By default, guests and unauthorized users can read the System and Application event logs (but never the Security log)."
- "DESCRIPTION 2"="To disallow this unverifed access, deactivate both options."
- "AUTHOR"="Xteq Systems"
- "CONTACTURL"="http://www.xteq.com"
- "COPYRIGHT"="Copyright ⌐ Xteq Systems - All Rights Reserved"
- "COMMENT 1"=" "
-
-
-
- sP1="HKLM\SYSTEM\CurrentControlSet\Services\EventLog\Application\RestrictGuestAccess"
- sP2="HKLM\SYSTEM\CurrentControlSet\Services\EventLog\System\RestrictGuestAccess"
-
- Sub Plugin_Initialize
- i=RegReadValue(sP1)
- if i<>1 then SetUIElement 1,true
-
- i=RegReadValue(sP2)
- if i<>1 then SetUIElement 2,true
- End Sub
-
- Sub Plugin_CheckData(ElementIndex)
- End Sub
-
- Sub Plugin_Apply(ElementIndex,ElementSubIndex)
- b=GetUIElement(1)
- Call ae(not b,sP1)
-
- b=GetUIElement(2)
- Call ae(not b,sP2)
-
- Restart
- End Sub
-
- Sub ae(val,Path)
- if val=true then
- Call RegWriteValue(path,1,2)
- else
- Call RegWriteValue(path,0,2)
- end if
- end Sub
-
-
-
-
- Sub Plugin_Terminate
- End Sub
-
-
-
-